package com.destroystokyo.paper.event.entity;

import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;

public class PlayerAttackedEntityEvent extends EntityAttackedEntityEvent {

    public PlayerAttackedEntityEvent(Player player, Entity victim,
                                     DamageCause cause, double damage) {
        super(player, victim, cause, damage);
    }

    @Override
    public Player getEntity() {
        return (Player) super.getEntity();
    }
}